package com.hzy.fivepalace.db.vo.wx;

import com.hzy.fivepalace.db.domain.DtsAddress;
import com.hzy.fivepalace.db.domain.DtsGroupProduct;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@ApiModel(value = "确认订单返回实体对象")
@Data
public class WxConfirmOrderResultVo {

    @ApiModelProperty(value = "商品详情集合")
    private List<WxConfirmOrderGoodsVo> goodsList;

    @ApiModelProperty(value = "可使用的优惠券列表")
    private List<WxUserCouponsVo> couponsList;

    @ApiModelProperty(value = "小计")
    private BigDecimal subtotal;

    @ApiModelProperty(value = "总计:需要支付金额")
    private BigDecimal payMoney;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountsMoney;

    @ApiModelProperty(value = "运费")
    private BigDecimal cost;

    @ApiModelProperty(value = "是否免费订单")
    private boolean freeOrder;

    /**
     * 收货地址信息,接口用，前端不用理会
     */
    private DtsAddress address;
    /**
     * 是否支持自提
     */
    @ApiModelProperty(value = "是否支持自提")
    private boolean supportSince;


    /**
     * 订单类型  0 - 普通订单  1 - 团购订单
     */
    @ApiModelProperty(value = "订单类型")
    private Integer orderType;

    /**
     * 订单类型  0 - 普通订单  1 - 团购订单
     */
    @ApiModelProperty(value = "订单类型")
    private Integer groupId;

    /**
     * 团购信息
     */
    @ApiModelProperty(value = "团购信息")
    private DtsGroupProduct groupProduct;

}
